package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Classification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import java.util.List;

/**
 * @author 林晓伟
 */
@Mapper
public interface ClassificationMapper extends BaseMapper<Classification> {
    @ResultMap("ClassificationMapper")
    Integer add(Classification classification);

    @ResultMap("ClassificationMapper")
    Integer judge(String naeme);

    @ResultMap("ClassificationMapper")
    Integer update(Classification classification);

    @ResultMap("ClassificationMapper")
    Integer delete(Integer id);

    @ResultMap("ClassificationMapper")
    List<Classification> list(String type);

    @ResultMap("StaffMessageMapper")
    List<Classification> all();




}
